feat: move filters from superset-ui to incubator#12154
feat: move filters from superset-ui to incubator#12154villebro merged 13 commits intoapache:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12154 +/- ##
==========================================
- Coverage 67.05% 59.11% -7.95%
==========================================
Files 1001 958 -43
Lines 49380 46738 -2642
Branches 5033 4331 -702
==========================================
- Hits 33112 27628 -5484
- Misses 16140 19110 +2970
+ Partials 128 0 -128
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
Hi @simchanielsen Thanks for the PR. I think the advantage to have native filter component in superset core js codebase is obvious: quicker development cycle, easier to share function or components with other But since filter component was a superset-ui plugin, may i know what is original architectural design consideration? |
…ve-filters-ant � Conflicts: � superset-frontend/src/dashboard/components/nativeFilters/FilterBar.tsx
…-superset into move-filters-ant
villebro
left a comment
There was a problem hiding this comment.
Thanks for moving this over! A few first pass comments, will test soon
superset-frontend/src/filters/components/Range/transformProps.ts
Outdated
Show resolved
Hide resolved
superset-frontend/src/filters/components/Select/AntdSelectFilter.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/filters/components/Select/transformProps.ts
Outdated
Show resolved
Hide resolved
| if (lower !== undefined && lower !== null) { | ||
| filters.push({ col, op: '>=', val: lower }); | ||
| } | ||
| if (upper !== undefined && upper !== null) { | ||
| filters.push({ col, op: '>=', val: upper }); | ||
| } |
There was a problem hiding this comment.
The upper bound should probably be '<='
villebro
left a comment
There was a problem hiding this comment.
LGTM, thanks for moving this + adding tests + fixing the bugs uncovered by the new tests!
|
Related: apache-superset/superset-ui#840 |
SUMMARY
Move Select and Range ant filters from superset-ui to incubator + support in it for
queriesDataparamBEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION